/*
 * Vuex状态管理
 */
import { createStore } from 'vuex'
import mutations from './mutations'
import storage from '../utils/storage'

const state = {
  userInfo: storage.getItem('userInfo') || {}, //获取用户信息
  menuList: storage.getItem('menuList') || [],//拥有的菜单列表
  actionList: storage.getItem('actionList') || [],//拥有的按钮列表
  noticeCount:0,//待审批数量
}
export default createStore({
  state,
  mutations,
})
